﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NanoERP.Model.Poco;
using Omu.ValueInjecter;

namespace NanoERP
{
    public class LogonSession
    {
        public static LogonUser LogonUser
        {
            get;
            private set;
        }

        public static bool IsLogon
        {
            get;
            set;
        }

        internal static void Set(SYS_User user)
        {
            if (user == null)
                throw new ArgumentNullException();
            LogonUser = new LogonUser();
            LogonUser.InjectFrom(user);
        }


    }
}
